var map;
var lat;
var lng;
var namehafen;

function locationmap(lat, lng, namehafen) {
  var haightAshbury = new google.maps.LatLng(lat, lng);
  var mapOptions = {
    zoom: 10,
    center: haightAshbury,
    mapTypeId: google.maps.MapTypeId.TERRAIN
  };
  map =  new google.maps.Map(document.getElementById("canvas"), mapOptions);
  
  var myLatlng = new google.maps.LatLng(lat, lng);
  var marker = new google.maps.Marker({
      position: myLatlng, 
      map: map, 
      title: namehafen
  });
  
  	map.setCenter(marker.getPosition());
	
}